<?php
include $this->Render('header.php');
?>
<link rel="stylesheet" type="text/css" href="<?php echo BASE_STYLE;?>/css/admin.css" />
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/dyhl.linkpage.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/common.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/uploadifive/jquery.uploadifive.js"></script>
<style type="text/css">
    body {min-width:600px !important; overflow:scroll !important; overflow-x:hidden !important;}
    .order-item-box {
        width:100%;
        height:auto;
        overflow:hidden;
        padding-bottom:15px;
        margin-bottom:15px;
    }
    .tongrong-box input[type="text"],.tongrong-box select {
        background:none;
    }
    }
    .ico-close {z-index:999;}
</style>
<div class="tongrong-box" style="width:680px;">
    <form class="order-item-box J-ajaxForm" action="/order/assessindex/option/updata/" method="post" autocomplete="off">
        <div class="tongrong-box-main">
            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                <tr height="35px">
                    <td width="33%">客户姓名：<?php echo $this->data['et_name'];?></td>
                    <td width="33%">车架号后六位：<?php echo $this->data['et_code'];?></td>
                    <td height="20px">车辆类型：<?php echo $this->data['et_car_type'];?></td>
                </tr>
                <tr height="35px">
                    <td  colspan="2">车型：<?php echo $this->data['et_car_model'].'-'.$this->data['et_car_fullmodel'];?>
                    </td>
                    <td>上牌注册日期：<?php echo $this->data['et_car_date'];?></td>
                </tr>
                <tr height="35px">
                    <td colspan="3">
                        贷款银行：<?php echo $this->data['et_bank']; ?>
                    </td>
                </tr>
                <tr height="35px">
                    <td colspan="3">
                        评估要求：<?php echo $this->data['et_remarks'];?>
                    </td>
                </tr>
                <?php if(!empty($this->data['et_price'])) {?>
                <tr height="35px">
                    <td style="color: #FF0000">第一次评估价：<?php echo $this->data['et_price'];?></td>
                    <td style="color: #FF0000">评估员：<?php echo $this->data['et_fname'];?></td>
                    <td style="color: #FF0000">评估时间：<?php echo empty($this->data['et_ftime']) ? '' : date('Y-m-d H:i:s', $this->data['et_ftime']);?></td>
                </tr>
                <tr height="35px">
                    <td colspan="3">要求重评备注：<?php echo $this->data['et_remarks_two'];?></td>
                </tr>
                <?php } ?>

            </table>
            <br />
            评估价：<input size="20" style="width: 100px" name="et_price" type="text" id="et_price" size="35" value="<?php echo $this->data['et_price'];?>"/>
            <br />
        </div>

        <style type="text/css">
            .uploadifive-button {width:84px;height:84px !important;line-height:normal;margin-top:-84px;background:none !important;}

            .file-upload-completed,.uploadifive-queue-item {position:absolute;width:84px;bottom:0;}

            .uploadifive-queue-item .close {background: url('<?php echo BASE_STYLE;?>/uploadifive/uploadifive-cancel.png') 0 0 no-repeat;display: block;float: right;height: 16px;
                text-indent: -9999px;width: 16px;}
            .uploadifive-queue-item .progress {height: 3px;margin-top: 5px;width: 100%;}
            .uploadifive-queue-item .progress-bar {background-color: #0072BC;height: 3px;width: 0;}

            .uploadifive-queue-item .filename {display:none;}
            input[type="text"],select {background:none;}
        </style>

        <div class="order-item-box" style="border:0;">
            <fieldset style="border:1px solid #a8a8a8; padding:10px 15px;">

                <dl class="mianqianxinxi-box">
                    <dt>车辆照片(至少8张)</dt>
                    <dd class="mianqianxinxi-pic-list J-box-estimate-car">
                        <?php if(!empty($this->data['attachment']['car'])) foreach($this->data['attachment']['car'] as $k=>$v){?>
                            <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                                <a href="<?php echo $this->data['attachment']['car_url'][$k];?>" data-lightbox="pic" style="position:relative; display:inline-block; width:80px;height:80px;margin-right:10px;">
                                    <img class="example-image" src="<?php echo $this->data['attachment']['car_thurl'][$k];?>" width="80" height="80" />
                                </a>
                            </div>
                            <?php
                        }
                        ?>
                    </dd>
                </dl>

                <dl class="mianqianxinxi-box">
                    <dt>行驶证/登记证照片</dt>
                    <dd class="mianqianxinxi-pic-list J-box-estimate-plate">
                        <?php if(!empty($this->data['attachment']['plate'])) foreach($this->data['attachment']['plate'] as $k=>$v){?>
                            <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                                <a href="<?php echo $this->data['attachment']['plate_url'][$k];?>" data-lightbox="pic" style="position:relative; display:inline-block; width:80px;height:80px;margin-right:10px;">
                                    <img class="example-image" src="<?php echo $this->data['attachment']['plate_thurl'][$k];?>" width="80" height="80" />
                                </a>
                            </div>
                            <?php
                        }
                        ?>
                    </dd>
                </dl>

                <dl class="mianqianxinxi-box">
                    <dt>出厂铭牌照片</dt>
                    <dd class="mianqianxinxi-pic-list J-box-estimate-comp">
                        <?php if(!empty($this->data['attachment']['comp'])) foreach($this->data['attachment']['comp'] as $k=>$v){?>
                            <div style="position:relative;display:inline-block; float:left;margin-right:10px;">
                                <a href="<?php echo $this->data['attachment']['comp_url'][$k];?>" data-lightbox="pic" style="position:relative; display:inline-block; width:80px;height:80px;margin-right:10px;">
                                    <img class="example-image" src="<?php echo $this->data['attachment']['comp_thurl'][$k];?>" width="80" height="80" />
                                </a>
                            </div>
                            <?php
                        }
                        ?>
                    </dd>
                </dl>
            </fieldset>
        </div>


        <div class="order-item-box mt30">
            <input type="hidden" name="option" value="updata" />
            <input type="hidden" name="id" value="<?php echo $this->id;?>" />
            <input class="btn-submit-blue fn-left mr15 J-esubmit" type="submit" value="提交" />
            <input type="button" id="J-car-down" class="a-btn-close mr15 J-car-down" value="下载评估信息" />
            <a href="javascript:;" class="a-btn-close J-etuihui fn-right mr15">退回</a>
            <a class="a-btn-close J-a-btn-close" href="javascript:;">关闭</a>
        </div>
    </form>
</div>

<script type="application/javascript">
    $(".J-a-btn-close").on('click',function(){

        var winElement = parent.Ext.fly(window.frameElement).up('div.x-window');
        parent.Ext.getCmp(winElement.id).close();

    });
    function submitChk() {
        if ($("#et_price").val() == '') {
            Ext.Msg.alert('提示', '评估价不能为空!');
            return false;
        }
        $(".J-esubmit").prop('disabled',true);
    }

</script>



    <style type="text/css">
        .mianqianxinxi-box {
            height:auto;
            overflow:hidden;
            margin-top:15px;
        }

        .mianqianxinxi-box dt {
            margin-bottom:10px;
        }
        .mianqianxinxi-box dd {
            float:left;
        }

        .mianqianxinxi-pic-list {
            margin-right:10px;
        }

        .mianqianxinxi-pic-list img {
            margin-right:10px;
        }
    </style>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/dyhl_ext.js"></script>
<script type="text/javascript" src="<?php echo BASE_STYLE;?>/js/estimate_info.js?v=<?php echo time();?>"></script>
<?php include $this->Render('footer.php'); ?>
